
<template>
  <div>
    <h1>你喜欢啥?</h1>
    <span v-for="(o,index) in arr" :key="index">
      <input type="checkbox" v-model="kong" :value="o">{{o}}
    </span>
    <ul>
      <li v-for="(q,inidex) in kong" :key="inidex">{{q}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'FruitShopApp',

  data() {
    return {
      arr:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      kong:[]
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>